package com.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.gulimall.member.entity.MemberEntity;
import com.gulimall.member.execption.PhoneExsitException;
import com.gulimall.member.execption.UsernameExsitException;
import com.gulimall.member.vo.MemberLoginVo;
import com.gulimall.member.vo.MemberRegistVo;
import com.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author Lyangvo
 * @email 2210749431@qq.com
 * @date 2023-10-14 14:55:54
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo memberRegistVo);

    void checkPhoneUnique(String phone) throws PhoneExsitException;
    void checkUserNameUnique(String userName) throws UsernameExsitException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

